<tabset *ngIf="selection?.hasSingleSelection">
  <tab i18n-heading
       heading="Details">
    <table class="table table-striped table-bordered">
      <tbody>
        <tr>
          <td i18n
              class="bold w-25">Name</td>
          <td class="w-75">{{ selectedItem.name }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Description</td>
          <td>{{ selectedItem.desc }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Long description</td>
          <td>{{ selectedItem.long_desc }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Current values</td>
          <td>
            <span *ngFor="let conf of selectedItem.value; last as isLast">
              {{ conf.section }}: {{ conf.value }}{{ !isLast ? "," : "" }}<br />
            </span>
          </td>
        </tr>
        <tr>
          <td i18n
              class="bold">Default</td>
          <td>{{ selectedItem.default }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Daemon default</td>
          <td>{{ selectedItem.daemon_default }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Type</td>
          <td>{{ selectedItem.type }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Min</td>
          <td>{{ selectedItem.min }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Max</td>
          <td>{{ selectedItem.max }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Flags</td>
          <td>
            <span *ngFor="let flag of selectedItem.flags">
              <span title="{{ flags[flag] }}">
                <span class="badge badge-dark mr-2">{{ flag | uppercase }}</span>
              </span>
            </span>
          </td>
        </tr>
        <tr>
          <td i18n
              class="bold">Services</td>
          <td>
            <span *ngFor="let service of selectedItem.services">
              <span class="badge badge-dark mr-2">{{ service }}</span>
            </span>
          </td>
        </tr>
        <tr>
          <td i18n
              class="bold">Source</td>
          <td>{{ selectedItem.source }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Level</td>
          <td>{{ selectedItem.level }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Can be updated at runtime (editable)</td>
          <td>{{ selectedItem.can_update_at_runtime | booleanText }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Tags</td>
          <td>{{ selectedItem.tags }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">Enum values</td>
          <td>{{ selectedItem.enum_values }}</td>
        </tr>
        <tr>
          <td i18n
              class="bold">See also</td>
          <td>{{ selectedItem.see_also }}</td>
        </tr>
      </tbody>
    </table>
  </tab>
</tabset>
